package cn.qyd.javathread;

import java.util.Vector;

/**
 * @author 邱运铎
 * @date 2024-03-09 19:51
 */
public class MyThread extends Thread{

    @Override
    public void run(){
        for(int i = 0; i < 1000; i++) {
            //MyThreadMain.num++;
            MyThreadMain.num.incrementAndGet();
           // System.out.println("分支线程：--> " + i);
            if(i == 999)
            System.out.println("分线程for循环结束： num="+MyThreadMain.num);
        }
    }
}
